class Fisher{
    private boolean baitAvailable = false;
    private String session = "inactive";
    public void setSession(String session){
        this.session = session;
    }
    public final String getSession(){
        return this.session;
    }
    public void setBaitAvailable(boolean available){
        this.baitAvailable = available;
    }
    public final boolean isBaitAvailable(){
        return this.baitAvailable;
    }
}

public class FishingSession{
    private static Fisher fishingSession = new Fisher();
    private static void castForFish(){
    }
    public static void main(String args[]){
        fishingSession.setSession("active");
        int piecesOfBait = 5;
        piecesOfBait = 0;
        while(piecesOfBait != 0){
        //do {
            castForFish();
            /* Check... */
            if (fishingSession.isBaitAvailable() == false){
                // Place ... */
                fishingSession.setBaitAvailable(true);
                piecesOfBait--;
            }
        }
        //} while (piecesOfBait != 0);
    }
}
